package com.bkgy.modular.datacollect_bx.service;

import com.bkgy.modular.datacollect_bx.bean.JDataSave642;
import com.bkgy.modular.datacollect_bx.dao.JDataSaveDao642;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Log4j
public class JDataSaveService642 {

    @Autowired
    private JDataSaveDao642 jDataSaveDao642;

    public void insertData(JDataSave642 jDataSave){
        try {
            jDataSaveDao642.save(jDataSave);
            log.error("642写入mongdb完成");
        } catch (Exception e) {
            log.error("642写入mongdb错误");
            e.printStackTrace();
        }
    }

    public JDataSave642 findDataByExitId(String exitId){
        return jDataSaveDao642.findJDataSaveByExtid(exitId);
    }

}
